package 第二个作业;

public class 圆柱体 extends 园 {
    public int h;
    public void setH(int h) {
        this.h = h;
    }
    public int getH() {
        return h;
    }
    double s,v;
    //对方法进行重写；
    public double getS() {
        return 2*ges(r)+super.getS();
    }
    public double getV() {
        return ges(r)*h;
    }
}
